package TangkGame01;

import javax.swing.*;

public class TankGame extends JFrame {
    Panel mp = null;
    public static void main(String[] args) {
        TankGame tankGame = new TankGame();
    }
    public TankGame (){
        mp = new Panel();
        this.add(mp);
        new Thread(mp).start();
        this.addKeyListener(mp);
        this.setSize(1000,750);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
